//public class Dog {
//    public int year;
//    public int month;
//    public int day;
//
//    public void setDate (int year,int month,int day){
//        this.year = year;
//        this.month = month;
//        this.day = day;
//    }
//
//    public void printDate () {
//        System.out.println(this.year + "年" + this.month + "月" + this.day + "日");
//    }
//
//    public static void main (String[] args) {
//        Date date = new Date();
//        date.setDate(2025,3,17);
//        date.printDate();
//    }
//}

public class Dog {
    private String name;
    private int age;
    private String color;


//    public Dog (String name , int age , String color) {
//        this.name = name;
//        this.age = age;
//        this.color = color;
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void sleep(){
        System.out.println(this.name + "正在睡觉");
    }
    public void show(){
        System.out.println( "姓名：" + this.name + "  年龄：" + this.age + "  颜色：" + this.color );
    }

    public static void main (String[] args) {
//        Dog dog = new Dog("xiaochi",19,"black");
        Dog dog = new Dog();
        dog.setAge(19);
        System.out.println(dog.getAge());
    }
}

